Package edu.uky.ai.lp.ai
Interface Agent
- All Known Implementing Classes:
HumanAgent,LogicAgent
public interface Agent
Represents a player in "Hunt the Wumpus."
- Author:
- Stephen G. Ware
-
Method Summary
Modifier and Type Method Description ActionchooseAction(Game game)Chooses the next move for the player to make.voidobserve(Result result)Alerts the player to the result of the most recent action.
-
Method Details
-
chooseAction
Chooses the next move for the player to make.- Parameters:
game- the current state of the game- Returns:
- the action the player should take
-
observe
Alerts the player to the result of the most recent action.- Parameters:
result- the result of the most recent action
-